﻿

CREATE PROCEDURE [dbo].[balcon_StergeSolduriInitialeCapitoleZero]
AS
BEGIN
	-- SET NOCOUNT ON added to prevent extra result sets from
	-- interfering with SELECT statements.
	SET NOCOUNT ON;
	DISABLE TRIGGER [UpdateParinteJurnaleSolduriInitiale] ON [JurnaleSolduriInitiale];

	DELETE FROM [JurnaleSolduriInitiale] WHERE DebitInitial=0 AND CreditInital=0 AND DebitPrecedent=0 AND CreditPrecedent=0;

	ENABLE TRIGGER  [UpdateParinteJurnaleSolduriInitiale] ON [JurnaleSolduriInitiale]
END